package com.blog.attach.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 苏离
 * @since 2022-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    @TableField(fill = FieldFill.INSERT)
    private Integer replayCount;

    private String commentUserId;

    @JsonFormat(pattern = "yyyy-MM-dd kk:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date commentTime;

    private String commentContent;

    private Integer commentArticleId;


}
